<?php

namespace adibilis\adminBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * PassOrder
 *
 * @ORM\Table("passorder")
 * @ORM\Entity(repositoryClass="adibilis\adminBundle\Entity\PassOrderRepository")
 */
class PassOrder
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;


     /**
    * @ORM\ManyToOne(targetEntity="adibilis\adminBundle\Entity\OrderStatus")
    * @ORM\JoinColumn(nullable=false)
    */
    private $status;



    /**
    * @ORM\ManyToOne(targetEntity="adibilis\UserBundle\Entity\User")
    * @ORM\JoinColumn(nullable=false)
    */
    private $user;


    /**
    * @ORM\Column(name="date", type="datetime")
    */
    private $date;


    public function __construct()
      {
        $this->date = new \Datetime(); 




    }


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }



    /**
     * Set Status
     *
     * @param \adibilis\adminBundle\Entity\OrderStatus $status
     * @return Activite
     */
    public function setStatus(\adibilis\adminBundle\Entity\OrderStatus $status)
    {
        $this->status = $status;
    
        return $this;
    }

    /**
     * Get Status
     *
     * @return \adibilis\adminBundle\Entity\OrderStatus 
     */
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * Set date
     *
     * @param \DateTime $date
     * @return PassOrder
     */
    public function setDate($date)
    {
        $this->date = $date;
    
        return $this;
    }

    /**
     * Get date
     *
     * @return \DateTime 
     */
    public function getDate()
    {
        return $this->date;
    }

    /**
     * Set user
     *
     * @param \adibilis\UserBundle\Entity\User $user
     * @return PassOrder
     */
    public function setUser(\adibilis\UserBundle\Entity\User $user)
    {
        $this->user = $user;
    
        return $this;
    }

    /**
     * Get user
     *
     * @return \adibilis\UserBundle\Entity\User 
     */
    public function getUser()
    {
        return $this->user;
    }
}